#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int month, day, year;
	scanf("%02d-%02d-%d", &month, &day, &year);

	printf("%d-%02d-%02d", year, month, day);
	return 0;
}